<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>信息表单</title>
    <style>
        body {
            background: #f5f6fa;
            font-family: 'Segoe UI', Arial, sans-serif;
        }
        .form-container {
            max-width: 400px;
            margin: 40px auto;
            padding: 24px 32px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .form-group {
            margin-bottom: 18px;
        }
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #333;
        }
        input[type="text"], select {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 15px;
            box-sizing: border-box;
        }
        .radio-group, .checkbox-group {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }
        .checkbox-group label, .radio-group label {
            display: flex;
            align-items: center;
            font-weight: normal;
            margin-bottom: 0;
            color: #555;
        }
        button {
            width: 100%;
            padding: 10px 0;
            background: #3498db;
            color: #fff;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.2s;
        }
        button:hover {
            background: #217dbb;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <form>
            <div class="form-group">
                <label for="name">姓名：</label>
                <input type="text" id="name" name="name" required>
            </div>
            <div class="form-group">
                <label>性别：</label>
                <div class="radio-group">
                    <label><input type="radio" name="gender" value="男" required> 男</label>
                    <label><input type="radio" name="gender" value="女"> 女</label>
                </div>
            </div>
            <div class="form-group">
                <label for="age">年龄：</label>
                <input type="text" id="age" name="age" required>
            </div>
            <div class="form-group">
                <label>兴趣爱好：</label>
                <div class="checkbox-group">
                    <label><input type="checkbox" name="hobby" value="篮球"> 篮球</label>
                    <label><input type="checkbox" name="hobby" value="排球"> 排球</label>
                    <label><input type="checkbox" name="hobby" value="羽毛球"> 羽毛球</label>
                    <label><input type="checkbox" name="hobby" value="瑜伽"> 瑜伽</label>
                    <label><input type="checkbox" name="hobby" value="舞蹈"> 舞蹈</label>
                    <label><input type="checkbox" name="hobby" value="游泳"> 游泳</label>
                </div>
            </div>
            <!-- <button type="submit">确认</button> -->
            <button type="submit" onclick="alert('已完成');">确认</button>
        </form>
    </div>
</body>
</html></div>